package org.shj.javaconcurrencypattern.producterconsumer;

public class Main {

	public static void main(String[] args) {
		final AttachmentProcessor processor = new AttachmentProcessor();
		
		processor.init();
		
		for(int i = 0 ; i < 100; i++){
			final int cnt = i;
			new Thread(){
				public void run(){
					processor.saveAttachment("FileName: file" + cnt);
				}
			}.start();
		}
		

	}

}
